package web.demo.service.impl;

import java.util.List;

import web.demo.dao.impl.FoodDetailDao;
import web.demo.entity.FoodDetail;
import web.demo.factory.BeanFactory;
import web.demo.service.IFoodDetailService;
import web.demo.utils.PageBean;

public class FoodDetailService implements IFoodDetailService{

	private FoodDetailDao foodDetailDao=BeanFactory.getInstance("foodDetailDao",FoodDetailDao.class);
	
	@Override
	public List<FoodDetail> getAll() {
		return foodDetailDao.getAll();
	}

	@Override
	public int getCount() {
		return foodDetailDao.getCount();
	}

	@Override
	public List<FoodDetail> getAll(PageBean pageBean) {
		return foodDetailDao.getAll(pageBean);
	}

	@Override
	public int getCount(PageBean pageBean) {
		return foodDetailDao.getCount(pageBean);
	}

	@Override
	public List<FoodDetail> search(String selectCondition) {
		return foodDetailDao.search(selectCondition);
	}

}
